package cn.hd.service;

import cn.hd.entity.Advertise;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

@Service
@Transactional
public interface AdvertiseService {

    //根据名称模糊分页查询查询
    public PageInfo<Advertise> selectAdvertise(int pageNum, int pageSize, Map map);

    //根据名称模糊分页查询查询
    public PageInfo<Advertise> selectAllFenYeAdvertise(int pageNum,int pageSize);

    //添加
    public int addAdvertise(Advertise advertise);

    //根据编号查询
    public Advertise selectAdvertiseById(long adid);

    //修改
    public int updateAdvertise(Advertise advertise);

    //删除
    public int deleteAdvertise(long adid);

    //修改审核状态为成功
    public int updateAdvertisePass(long adid);

    //修改审核状态为失败
    public int updateAdvertiseFail(long adid);
}
